#include <opencv2/opencv.hpp>
using namespace cv;
int main()
{
    Mat image = imread("./LL.png");
 
    Mat gray;
    cvtColor(image, gray, CV_BGR2GRAY);
   

    Mat cornerStrength;
    cornerHarris(gray, cornerStrength, 3, 3, 0.01);
    threshold(cornerStrength, cornerStrength, 0.001, 255, THRESH_BINARY);
    imshow( "image",image );
    imshow( "Gray image", gray );
    imshow( "harris image", cornerStrength);
    waitKey(0);
    return 0;
}